#pragma once
#include <list>
#include "Shape.h"
#include "MRect.h"
#include "MCircle.h"
using namespace std;

class CollisionDetector
{
public:
	class TreeNode {
	public:
		TreeNode *parent;
		list<TreeNode *> children;
	};
public:
	TreeNode root;
	CollisionDetector(void);
	~CollisionDetector(void);
	static void collisionDetect(Shape *p, list<Shape*> &l1);
	static void collisionDetect(Shape *p, list<Shape*> *l1);
};

